package o;

import android.content.Context;
import android.text.TextUtils;
import com.huawei.appgallery.common.media.adapter.BaseThumbnailAdapter;
import com.huawei.appgallery.common.media.adapter.ImageThumbnailAdapter;
import com.huawei.appgallery.common.media.adapter.VideoThumbnailAdapter;

public class bld {
    public static BaseThumbnailAdapter ˏ(Context context, String str) {
        if (TextUtils.isEmpty(str)) {
            str = "image";
        }
        if ("video".equals(str)) {
            return new VideoThumbnailAdapter(context);
        }
        return new ImageThumbnailAdapter(context);
    }
}
